import { request } from 'umi';
import { inteLoginItem } from '@/utils/interface';

//登陆接口
export let getLogin=(data:inteLoginItem)=>{
    console.log(data);
    return request('admin/login',{
        method: 'POST',
        data
    })
}

//注册接口
export let getregistry=(data:inteLoginItem)=>{
    return request("admin/registered",{
        method:"post",
        data
    })
}

